/* let arr = ['a','b','c'];

arr.age = 10;
for(let key in arr){
    console.log(key,arr[key]);
}
console.log('-------------------');
for(let item of arr){
    console.log(item);
} */
let arr = {a:'a',b:'b'}

arr.age = 10;
for(let key in arr){
    console.log(key,arr[key]);
}
//arr is not iterable
console.log('-------------------');
for(let item of arr){
    console.log(item);
}